package com.softserve.academy.food.services.supplement;

public class Convector 
{
	static public int StringToInt(String id)
	{
		int ID=0;
		
		try
		{
			ID = Integer.parseInt(id);
		}
		catch (NumberFormatException e)
		{
		}
		return ID;
	}
	
	static public float StringToFloat(String id)
	{
		float ID=0;
		
		try
		{
			ID = Float.parseFloat(id);
		}
		catch (NumberFormatException e)
		{
		}
		return ID;
	}
}
